package com.atguigu.cloud.apis;


import com.atguigu.cloud.resp.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seata-storage-service")
public interface StorageFeignApi {
    /**
     * 扣减库存
     */
    @GetMapping("/storage/decrease")
    public ResultData decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);
}
